﻿
<div>

        @{
            if (User.Identity.IsAuthenticated)
            {
                FollowPeers.Models.FollowPeersDBEntities followPeersDB = new FollowPeers.Models.FollowPeersDBEntities();
                string name = Membership.GetUser().UserName;
                FollowPeers.Models.UserProfile myprofile = followPeersDB.UserProfiles.SingleOrDefault(p => p.UserName == name);
                
            <div class="navbar navbar-fixed-top" >
			      <div class="navbar-inner">
			        <div class="container">
			            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
			        <span class="icon-bar"></span>
			        <span class="icon-bar"></span>
			        <span class="icon-bar"></span>
			      </a>
			           <a class="brand" href="@Url.Content("~/Notice/Index/?id=" + @myprofile.UserProfileId)">Follow Peers</a>
			        <ul class="nav">
			          <li class="divider-vertical"></li>
			          <li class=""> <a href="@Url.Content("~/Notice/Index/?id=" + @myprofile.UserProfileId)">Home</a></li>
			          <li class="divider-vertical"></li>
			          <li class=""> <a href="@Url.Content("~/Profile/Index/?id=" + @myprofile.UserProfileId)">Profile</a></li>
			          <li class="divider-vertical"></li>
		          	  <li class=""> <a href="@Url.Content("~/Profile/FollowedByList/?name=" + Session["username"])">Peers</a></li>
		          	  <li class="dropdown" style="margin-left:-10px">
					    <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <b class="caret"></b>
					      </a>
					    <ul class="dropdown-menu">
					    	<li class=""> <a href="action">Follows<span class="badge badge-success pull-right">@ViewData["followscount"]</span></a></li>
					    	<li class="divider"></li>
					    	<li class=""> <a href="action">Followers<span class="badge badge-info pull-right">@ViewData["followersount"]</span></a></li>
					      <!-- links -->
					    </ul>
					  </li>
					  <li class="divider-vertical"></li>
                      <li class="dropdown" style="margin-left:-10px">
                      <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <b class="icon-cog icon-white"></b>
					      </a>
                        <ul class="dropdown-menu">
                            <li class="">@Html.ActionLink("Update Profile", "Edit", "Profile")</li>
                            <li class="">@Html.ActionLink("Bookmark Items", "ViewBookmarkJobs", "Profile")</li>
                            <li class="">@Html.ActionLink("Privacy", "TierFollowers", "Profile")</li>
                            <li class="">@Html.ActionLink("Log Off", "LogOff", "Account")</li>
                        </ul>
                      </li>
		          	    </ul>

					<form class="navbar-search pull-right">
		 			 <input type="text" class="search-query" placeholder="Search" />
					</form>
                     
                        <div id="content"><div class="search-background" style="margin-top:-26px">
                </div><div class ="typeahead dropdown-menu pull-right" id="sub_cont" style="display:none;border: 1px solid #AAA;-webkit-box-shadow: 0 15px 30px #888;"></div>
				</div>
              </div>
	        </div>
		    </div>
                
            }
        }

</div>
<div class="clear">
</div>
